//
//  bigRadioCollectionViewCell.m
//  OurRelaxDemo
//
//  Created by 于宾尧 on 15/6/25.
//  Copyright (c) 2015年 于宾尧. All rights reserved.
//

#import "bigRadioCollectionViewCell.h"

@implementation bigRadioCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self subMyViews];
    }
    return self;
}

-(void)subMyViews
{
    self.radioImage = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 125, 125)];
    self.radioImage.backgroundColor = [UIColor blackColor];
    self.radioImage.layer.masksToBounds = YES;
    self.radioImage.layer.cornerRadius = 10;
    
    [self.contentView addSubview:self.radioImage];
}

-(void)setBigRadioModels:(bigRadioModels *)bigRadioModels
{
    if (_bigRadioModels != bigRadioModels) {
        [_bigRadioModels release];
        _bigRadioModels = [bigRadioModels retain];
    }
    NSURL *url = [NSURL URLWithString:bigRadioModels.coverMiddle];
    [self.radioImage sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"musicWebCache.jpeg"]];
}

@end
